package com.zkadmin.controller;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.VariableResolver;

@VariableResolver(org.zkoss.zkplus.spring.DelegatingVariableResolver.class)
public abstract class BaseCtrl<T extends Component> extends SelectorComposer<T> {
	private static final long serialVersionUID = 7824713451093223781L;

	@Override
	public void doAfterCompose(T comp) throws Exception {
		super.doAfterCompose(comp);
		init(comp);
	}

	protected abstract void init(T comp);

}
